<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>选择器权重</title>
		<!-- 选择器权重越高，选中几率越大 -->
		<style>
			*{
			/* 权值 0  很容易被覆盖 */	
			color: #00557f !important;
			background: #ff557f;
			}
			div{
				/* 权值1 */
				color: #55ffff;
				background: #ffff00;
			}
			.d1{
				/* 权值10 */
				color: #0000ff;
				background: #55557f;
			}
			div.d1{
				color: #aaffff;
				background: #5500ff;
			}
			body div.d1{
				/* 权值12 */
				font-size: 25px;
				color: #ff00ff;
				background: #aa557f;
			}
			#d1{
				/* 权值100 */
				font-size: 15px;
				color: #ffaa00;
				background: #55aaff;
			}
			div#d1{
				/* 权值101 */
				font-size: 20px;
				color: #55aa7f;
				background: #0000ff;
			}
			div#d1:hover{
				/* 权值111 */
				color: #55aaff;
				background: #550000;
			}
		</style>
	</head>
	<body>
		<div class="d1" id="d1" style="color: red;">Lorem ipsum dolor sit amet consectetur adipisicing elit. Maxime, repellat reprehenderit cupiditate voluptatibus minus totam tenetur? Debitis dolorem dolores illo at, quisquam laboriosam tempore praesentium? Perspiciatis atque delectus eligendi incidunt!</div>
	</body>
</html>